<div class="lopcns view">
<h2><?php  __('Lopcn');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $lopcn['Lopcn']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Lopcn Maso'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $lopcn['Lopcn']['lopcn_maso']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Khoa'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($lopcn['Khoa']['id'], array('controller' => 'khoas', 'action' => 'view', $lopcn['Khoa']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Dot'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($lopcn['Dot']['id'], array('controller' => 'dots', 'action' => 'view', $lopcn['Dot']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nganh'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($lopcn['Nganh']['id'], array('controller' => 'nganhs', 'action' => 'view', $lopcn['Nganh']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Hinhthuc'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($lopcn['Hinhthuc']['id'], array('controller' => 'hinhthucs', 'action' => 'view', $lopcn['Hinhthuc']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tenlop'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $lopcn['Lopcn']['tenlop']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ghichu'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $lopcn['Lopcn']['ghichu']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Lopcn', true), array('action' => 'edit', $lopcn['Lopcn']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Lopcn', true), array('action' => 'delete', $lopcn['Lopcn']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $lopcn['Lopcn']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Lopcns', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Lopcn', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Khoas', true), array('controller' => 'khoas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Khoa', true), array('controller' => 'khoas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Dots', true), array('controller' => 'dots', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Dot', true), array('controller' => 'dots', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Nganhs', true), array('controller' => 'nganhs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Nganh', true), array('controller' => 'nganhs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Hinhthucs', true), array('controller' => 'hinhthucs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Hinhthuc', true), array('controller' => 'hinhthucs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Hocviens', true), array('controller' => 'hocviens', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Hocvien', true), array('controller' => 'hocviens', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Hocviens');?></h3>
	<?php if (!empty($lopcn['Hocvien'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Hv Maso'); ?></th>
		<th><?php __('Lopcn Id'); ?></th>
		<th><?php __('Taikhoan Id'); ?></th>
		<th><?php __('Hv Hoten'); ?></th>
		<th><?php __('Hv Noisinh'); ?></th>
		<th><?php __('Hv Ngaysinh'); ?></th>
		<th><?php __('Hv Diachi'); ?></th>
		<th><?php __('Hv Noicongtac'); ?></th>
		<th><?php __('Hv Dienthoai'); ?></th>
		<th><?php __('Hv Email'); ?></th>
		<th><?php __('Hv Gioitinh'); ?></th>
		<th><?php __('Hv Ngoaingu'); ?></th>
		<th><?php __('Hv Ghichu'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($lopcn['Hocvien'] as $hocvien):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $hocvien['id'];?></td>
			<td><?php echo $hocvien['hv_maso'];?></td>
			<td><?php echo $hocvien['lopcn_id'];?></td>
			<td><?php echo $hocvien['taikhoan_id'];?></td>
			<td><?php echo $hocvien['hv_hoten'];?></td>
			<td><?php echo $hocvien['hv_noisinh'];?></td>
			<td><?php echo $hocvien['hv_ngaysinh'];?></td>
			<td><?php echo $hocvien['hv_diachi'];?></td>
			<td><?php echo $hocvien['hv_noicongtac'];?></td>
			<td><?php echo $hocvien['hv_dienthoai'];?></td>
			<td><?php echo $hocvien['hv_email'];?></td>
			<td><?php echo $hocvien['hv_gioitinh'];?></td>
			<td><?php echo $hocvien['hv_ngoaingu'];?></td>
			<td><?php echo $hocvien['hv_ghichu'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'hocviens', 'action' => 'view', $hocvien['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'hocviens', 'action' => 'edit', $hocvien['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'hocviens', 'action' => 'delete', $hocvien['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $hocvien['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Hocvien', true), array('controller' => 'hocviens', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
